<%--张爱文，查询所有用户界面 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.xz.group12306.domain.User"%>
<%@ page import="java.util.List"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>所有用户记录</title>
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/icon.css">

<script type="text/javascript"
	src="../js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript"
	src="../js/util/easyui/jquery.easyui.min.js"></script>

</head>
<body>
	<%-- <%
		List<User> users = (List<User>) session.getAttribute("users");
	%> --%>
	<div style="margin: 20px 0;"></div>

	<table class="easyui-datagrid" title="所有用户信息"
		style="width: 700px; height: 250px">
		<thead>
			<tr>
				<th data-options="field:'id',width:80">编号</th>
				<th data-options="field:'UserName',width:100">姓名</th>
				<th data-options="field:'sex',width:80,align:'right'">性别</th>
				<th data-options="field:'certType',width:80,align:'right'">证件类型</th>
				<th data-options="field:'cert',width:200">证件号码</th>
			</tr>
		</thead>
		<%-- <%
			for (User user : users) {
		%> --%>
		<tbody>
		 <c:forEach items="${users }" var="user">
			<tr>
			    <td>${user.id }</td>
				<td>${user.username }</td>
				<td>${user.sex }</td>
				<td>${user.certType }</td>
				<td>${user.cert }</td>
			    
			</tr>
			</c:forEach>
		</tbody>
	
		
		<a href="AdminIndex.jsp" class="easyui-linkbutton"
				onclick="clearForm()" style="width: 80px">Return</a>
		
	</table>
</body>
</html>